package com.tanhua.dubbo.api;

import com.tanhua.enums.CommentType;
import com.tanhua.mondb.Comment;

import java.util.List;

public interface CommentApi {

    /*
    *
    * 发布动态
    * */
    Integer save(Comment comment1);
    /*
    * 分页查询动态
    * */
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);
    /*
    * 判断用户是否以点赞
    * */
    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);
}
